#ifndef _MH_EDIT_H
#define _MH_EDIT_H

enum {
    MH_EDIT_BKGND_GREY  = 0x01,
    MH_EDIT_BKGND_BLUE  = 0x02,
    MH_EDIT_BKGND_WHITE = 0x04,

    MH_EDIT_TEXT_BLACK = 0x0100,
    MH_EDIT_TEXT_WHITE = 0x0200,
    MH_EDIT_TEXT_YELLOW = 0X0400,
    MH_EDIT_TEXT_GREEN = 0x0800,

    MH_EDIT_BORDER_GREY  = 0x010000,
    MH_EDIT_BORDER_BLACK = 0x020000,


    MH_EDIT_ACTIVE         = 0x01000000,
    MH_EDIT_ACTIVE_DISABLE = 0x02000000,
    MH_EDIT_PASSWORD       = 0x04000000,
    MH_EDIT_VIRTUAL        = 0x08000000,
};

#define EDIT_MAX_LEN        8
BOOL RegisterMhEdit (void);
void UnregisterMhEdit (void);
void SetEditActive(HWND hWnd, BOOL bActive);
void SetEditVirtual(HWND hWnd, BOOL bVirtual);
void AddEditChar(HWND hWnd, int ch);
void DecEditChar(HWND hWnd);
void SetEditPassword(HWND hWnd, BOOL bPwd);
void SetEditBorder(HWND hWnd, int border);
/*
 * set text color of edit
 */
void SetEditTextColor(HWND hWnd, int color_bit);
#endif
